<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/string_collection.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('string__collection_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">string_collection.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="string__collection_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Pagliughi &lt;fpagliughi@mindspring.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Frank Pagliughi - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef __mqtt_string_collection_h</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_string_collection_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">mqtt/types.h</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html">   40</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1string__collection.html">string_collection</a></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">using</span> collection_type = std::vector&lt;string&gt;;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">using</span> c_arr_type = std::vector&lt;const char*&gt;;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    collection_type coll_;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    c_arr_type cArr_;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> update_c_arr();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">   68</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> = std::shared_ptr&lt;string_collection&gt;;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a490f1ac1b411a84ad54f9b2337992c36">   70</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1string__collection.html#a490f1ac1b411a84ad54f9b2337992c36">const_ptr_t</a> = std::shared_ptr&lt;const string_collection&gt;;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>() =<span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; str);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(<span class="keywordtype">string</span>&amp;&amp; str);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(<span class="keyword">const</span> collection_type&amp; vec);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(collection_type&amp;&amp; vec);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp; coll);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(<a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp;&amp; coll) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(std::initializer_list&lt;string&gt; sl);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">string_collection</a>(std::initializer_list&lt;const char*&gt; sl);</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a90037647a89f2fa09463ebc45707c5d2">  121</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#a90037647a89f2fa09463ebc45707c5d2">create</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; str) {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(str);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#add8e5b64132be97f4f117342dd0aae67">  130</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#add8e5b64132be97f4f117342dd0aae67">create</a>(<span class="keywordtype">string</span>&amp;&amp; str) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(str);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a690f2d229a2852a50daeb08d22d54238">  138</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#a690f2d229a2852a50daeb08d22d54238">create</a>(<span class="keyword">const</span> collection_type&amp; vec) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(vec);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    }</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a930b0410af1e97d6ba2fe188bbdd0c42">  147</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#a930b0410af1e97d6ba2fe188bbdd0c42">create</a>(collection_type&amp;&amp; vec) {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(vec);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    }</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a41adb5daf75eb7a351bfa93d8ebd17c4">  156</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#a41adb5daf75eb7a351bfa93d8ebd17c4">create</a>(std::initializer_list&lt;string&gt; sl) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(sl);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#a6c797fc349c47e2ac7164ec68849e7ac">  165</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">ptr_t</a> <a class="code" href="classmqtt_1_1string__collection.html#a6c797fc349c47e2ac7164ec68849e7ac">create</a>(std::initializer_list&lt;const char*&gt; sl) {</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;string_collection&gt;(sl);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp; <a class="code" href="classmqtt_1_1string__collection.html#a92a297a4bfdc1f801c4d1fbc2c5a425f">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp; coll);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp; <a class="code" href="classmqtt_1_1string__collection.html#a92a297a4bfdc1f801c4d1fbc2c5a425f">operator=</a>(<a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp;&amp; coll) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#af55c63c092dbf2b206dd93b73316dc96">  186</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1string__collection.html#af55c63c092dbf2b206dd93b73316dc96">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> coll_.empty(); }</div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#ad91c18c3dae8baccf5ebfb0d7c194e04">  191</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classmqtt_1_1string__collection.html#ad91c18c3dae8baccf5ebfb0d7c194e04">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> coll_.size(); }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1string__collection.html#a56a3ded249c5c5ea81536459e274573a">push_back</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; str);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1string__collection.html#a56a3ded249c5c5ea81536459e274573a">push_back</a>(<span class="keywordtype">string</span>&amp;&amp; str);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1string__collection.html#a6e4a123e5598300485b90458bfd07c3b">clear</a>();</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#ac7343668e51aa23d7949a78d55e03e09">  211</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; <a class="code" href="classmqtt_1_1string__collection.html#ac7343668e51aa23d7949a78d55e03e09">operator[]</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> coll_[i]; }</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classmqtt_1_1string__collection.html#aa8487ddeeb7b7893cd5ceabc0a957c33">  224</a></span>&#160;    <span class="keywordtype">char</span>* <span class="keyword">const</span>* <a class="code" href="classmqtt_1_1string__collection.html#aa8487ddeeb7b7893cd5ceabc0a957c33">c_arr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keywordtype">char</span>* <span class="keyword">const</span> *) cArr_.data(); }</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="comment">//const char* const* c_arr() const { return cArr_.data(); }</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;};</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keyword">using</span> string_collection_ptr = <a class="code" href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">string_collection::ptr_t</a>;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="keyword">using</span> const_string_collection_ptr = <a class="code" href="classmqtt_1_1string__collection.html#a490f1ac1b411a84ad54f9b2337992c36">string_collection::const_ptr_t</a>;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment">// end namespace mqtt</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="preprocessor">#endif      // __mqtt_string_collection_h</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a4f73d60180e32e7f067626b57878bf67"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a4f73d60180e32e7f067626b57878bf67">mqtt::string_collection::ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; string_collection &gt; ptr_t</div><div class="ttdoc">Smart/shared pointer to an object of this type. </div><div class="ttdef"><b>Definition:</b> string_collection.h:68</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_ad91c18c3dae8baccf5ebfb0d7c194e04"><div class="ttname"><a href="classmqtt_1_1string__collection.html#ad91c18c3dae8baccf5ebfb0d7c194e04">mqtt::string_collection::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">Gets the number of strings in the collection. </div><div class="ttdef"><b>Definition:</b> string_collection.h:191</div></div>
<div class="ttc" id="types_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Basic types and type conversions for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a930b0410af1e97d6ba2fe188bbdd0c42"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a930b0410af1e97d6ba2fe188bbdd0c42">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(collection_type &amp;&amp;vec)</div><div class="ttdoc">Creates a string collection on the heap by copying a vector of strings. </div><div class="ttdef"><b>Definition:</b> string_collection.h:147</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a6c797fc349c47e2ac7164ec68849e7ac"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a6c797fc349c47e2ac7164ec68849e7ac">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(std::initializer_list&lt; const char * &gt; sl)</div><div class="ttdoc">Create a string collection on the heap from an initialization list of C string pointers. </div><div class="ttdef"><b>Definition:</b> string_collection.h:165</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a56a3ded249c5c5ea81536459e274573a"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a56a3ded249c5c5ea81536459e274573a">mqtt::string_collection::push_back</a></div><div class="ttdeci">void push_back(const string &amp;str)</div><div class="ttdoc">Copies a string to the back of the collection. </div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_af55c63c092dbf2b206dd93b73316dc96"><div class="ttname"><a href="classmqtt_1_1string__collection.html#af55c63c092dbf2b206dd93b73316dc96">mqtt::string_collection::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdoc">Determines if the collection is empty. </div><div class="ttdef"><b>Definition:</b> string_collection.h:186</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a92a297a4bfdc1f801c4d1fbc2c5a425f"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a92a297a4bfdc1f801c4d1fbc2c5a425f">mqtt::string_collection::operator=</a></div><div class="ttdeci">string_collection &amp; operator=(const string_collection &amp;coll)</div><div class="ttdoc">Copy assignment. </div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a690f2d229a2852a50daeb08d22d54238"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a690f2d229a2852a50daeb08d22d54238">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(const collection_type &amp;vec)</div><div class="ttdoc">Creates a string collection on the heap by copying a vector of strings. </div><div class="ttdef"><b>Definition:</b> string_collection.h:138</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html"><div class="ttname"><a href="classmqtt_1_1string__collection.html">mqtt::string_collection</a></div><div class="ttdoc">Type for a collection of topics. </div><div class="ttdef"><b>Definition:</b> string_collection.h:40</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a41adb5daf75eb7a351bfa93d8ebd17c4"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a41adb5daf75eb7a351bfa93d8ebd17c4">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(std::initializer_list&lt; string &gt; sl)</div><div class="ttdoc">Create a string collection on the heap from an initialization list of strings. </div><div class="ttdef"><b>Definition:</b> string_collection.h:156</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_aa8487ddeeb7b7893cd5ceabc0a957c33"><div class="ttname"><a href="classmqtt_1_1string__collection.html#aa8487ddeeb7b7893cd5ceabc0a957c33">mqtt::string_collection::c_arr</a></div><div class="ttdeci">char *const * c_arr() const </div><div class="ttdoc">Gets a pointer to an array of NUL-terminated C string pointers. </div><div class="ttdef"><b>Definition:</b> string_collection.h:224</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_add8e5b64132be97f4f117342dd0aae67"><div class="ttname"><a href="classmqtt_1_1string__collection.html#add8e5b64132be97f4f117342dd0aae67">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(string &amp;&amp;str)</div><div class="ttdoc">Create a string collection on the heap, initially containing a single string. </div><div class="ttdef"><b>Definition:</b> string_collection.h:130</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a490f1ac1b411a84ad54f9b2337992c36"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a490f1ac1b411a84ad54f9b2337992c36">mqtt::string_collection::const_ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; const string_collection &gt; const_ptr_t</div><div class="ttdoc">Smart/shared pointer to a const object of this type. </div><div class="ttdef"><b>Definition:</b> string_collection.h:70</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a90037647a89f2fa09463ebc45707c5d2"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a90037647a89f2fa09463ebc45707c5d2">mqtt::string_collection::create</a></div><div class="ttdeci">static ptr_t create(const string &amp;str)</div><div class="ttdoc">Create an empty string collection on the heap. </div><div class="ttdef"><b>Definition:</b> string_collection.h:121</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a74a9a5e1fe2f00b3fffe65172e2b4dec"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a74a9a5e1fe2f00b3fffe65172e2b4dec">mqtt::string_collection::string_collection</a></div><div class="ttdeci">string_collection()=default</div><div class="ttdoc">Construct an empty string collection. </div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_ac7343668e51aa23d7949a78d55e03e09"><div class="ttname"><a href="classmqtt_1_1string__collection.html#ac7343668e51aa23d7949a78d55e03e09">mqtt::string_collection::operator[]</a></div><div class="ttdeci">const string &amp; operator[](size_t i) const </div><div class="ttdoc">Gets the n&#39;th string in the collection. </div><div class="ttdef"><b>Definition:</b> string_collection.h:211</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html_a6e4a123e5598300485b90458bfd07c3b"><div class="ttname"><a href="classmqtt_1_1string__collection.html#a6e4a123e5598300485b90458bfd07c3b">mqtt::string_collection::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Removes all the strings from the collection. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="string__collection_8h.html">string_collection.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
